<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>企业注册</title>
<!DOCTYPE html>
<html>
<head>
    <!-- meta -->
    <meta charset="UTF-8">
    <title></title>
	<script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.js"></script>
    
    <link rel="stylesheet" type="text/css" href="webpage/com/recruit/company/css/regist/main_98962d0.css" />
</head>
<body>
<!-- 页面主体START -->
<header class="sso_header"></header>
<div class="content_box cleafix">
    <div class="app_download_layer"></div>
    <form id="registform" action="companyRegisterController.do?doRegister" method="post">
        用户名： <input id="userName" type="text" name="userName" placeholder="请输入用户名"><br>
                 真实姓名： <input id="realName" type="text" class="input" name="realName" placeholder="请输入真实姓名"><br>
                  密码： <input id="password" type="text" class="input" name="password" placeholder="请输入密码"><br>
                 确认密码： <input id="repassword" type="text" class="input" name="" placeholder="请输入确认密码"><br><br>
         <input id="registButton" type="button" value="注册" style="width: 100px;height: 30px;" onclick="check()"/><br>
         </form>
</div>
<!-- 页面主体END -->
<footer class="page_footer">
    <p>已有帐号，请<a href="/jeecg" data-lg-tj-id="1UF0" data-lg-tj-no="idnull" data-lg-tj-cid="idnull">登录</a></p>
</footer>

<input id="msg" type="hidden" value="${msg } "/>
	
	<script type="text/javascript">
	(function(){
		var msg = document.getElementById("msg").value;
		if(msg == 1){
			alert("用户已被注册");
		}
		if(msg == 2){
			alert("注册成功");
			window.location.href = "/jeecg";
		}
	})(); 
	
	
	function check(){
		var userName = document.getElementById("userName").value;
		var realName = document.getElementById("realName").value;
		var password = document.getElementById("password").value;
		var repassword = document.getElementById("repassword").value;
		var check = true;
		if(userName == ""){
			check = false;
			alert("用户名不能为空");
		}else{
			if(realName == ""){
				check = false;
				alert("真实姓名不能为空");
			}else{
				if(password == ""){
					check = false;
					alert("密码不能为空");
				}else{
				if(repassword == ""){
					alert("重复密码不能为空");
					check = false;
				}
				}	
			}
		}
		if(check){
			if(password == repassword){
				$("#registform").submit();
			}else{
				alert("重复密码不正确");
			}
		}
		
	}
	
	</script>
</body>
</html>


<%-- <%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>企业注册</title>
</head>
<body>


	<form action="companyRegisterController.do?doRegister" method="post">
	
	用户名：<input type="text" id="userName"  name="userName"  value="${userName }"/><br/>
	真实姓名：<input type="text" id="realName" name="realName" value="${realName }"/><br/>
	密码：<input type="password"  value="" name="password"/><br/>
	确认密码：<input id="repassword" type="password" value=""/><br/>
	<input type="submit" value="注册"/>
	
	</form>


	
</body>
</html> --%>